#include <iostream>
using namespace std;
int main()
{
	char ch;
	cin >> ch;
	int num = (int)ch;
	cout << num << endl;
	return 0;
}
